// api/exam/group/member.js
import request from '@/utils/request'

export function getPendingMembers(groupId) {
  return request({
    url: '/exam/group/member/pending',
    method: 'get',
    params: { groupId }
  })
}

export function approveMember(data) {
  return request({
    url: '/exam/group/member/approve',
    method: 'post',
    data
  })
}

export function inviteMember(data) {
  return request({
    url: '/exam/group/member/invite',
    method: 'post',
    data
  })
}

export function removeMember(id) {
  return request({
    url: `/exam/group/member/${id}`,
    method: 'delete'
  })
}
